package gui.edit.listeners;


import gui.IHM;
import gui.edit.components.dialogs.JDialogHelpButton;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * @author Charles Perin
 * 29 mars 2011
 * LIMSI - INRIA Rennes
 * charles.perin@free.fr
 *
 */
public class ListenerHelpButton implements ActionListener{
	
	private String title, infos, imageURL;
	private IHM ihm;

	public ListenerHelpButton(IHM ihm, String title, String infos, String imageURL){
		this.imageURL=imageURL;
		this.infos=infos;
		this.title=title;
		this.ihm=ihm;
	}

	
	@Override
	public void actionPerformed(ActionEvent arg0) {
		JDialogHelpButton dial = new JDialogHelpButton(ihm, title, false, infos, imageURL);
		dial.setVisible(true);
		dial.getParent().setEnabled(false);
	}

}
